package com.itheima.user.feign;

import com.itheima.order.pojo.Order;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class OrderFallback implements OrderFeign {
    /**
     * 根据用户名查询订单列表
     *
     * @param username
     * @return
     */
    @Override
    public List<Order> findOrdersByUserName(String username) {

        List<Order> list = new ArrayList<>();
        Order order = new Order();
        order.setId("-1");
        list.add(order);

        return list;
    }
}
